YT Downloader Windows Release Package v2.0

NORMAL USE
- Run "YT Downloader.exe".
- Keep the complete application folder together.
- Do not move or delete the _internal folder.
- FFmpeg and FFprobe are bundled with the application.

USER GUIDE
==========

ABOUT
-----

YT Downloader is a desktop application for downloading YouTube videos
in the available video quality selected by the user.

The application supports multiple YouTube URLs, queue management,
quality selection, download progress, cancellation, existing-file
handling, browser cookies, and automatic retry of certain temporary
HTTP 403 download failures.


1. STARTING THE APPLICATION
---------------------------

Open:

    YT Downloader.app

When the application starts, the default download folder is:

    ~/Downloads/YTDownloads

The application can also use another folder selected through
"Change Folder".


2. ADDING YOUTUBE VIDEOS
------------------------

1. Paste one or more YouTube video URLs into the "YouTube URLs" box.
2. Use one URL per line.
3. Click "Add to Queue".
4. The application checks each URL and retrieves its available
   video qualities.
5. Successfully checked videos are added to the "Download Queue".

Invalid URLs, duplicate URLs, inaccessible videos, videos for which
no quality is detected, and videos requiring browser authentication
are reported separately.


3. SELECTING VIDEO QUALITY
--------------------------

The application detects the video qualities that are actually
available for each queued video.

Examples of possible qualities include:

    4320p (8K)
    2160p (4K)
    1440p (2K)
    1080p (Full HD)
    720p (HD)
    360p

"Best Available" means the highest available quality detected for
the selected video(s).

When multiple videos are selected, the quality dropdown shows only
qualities that are available for ALL selected videos.

For example:

    Video 1: 4320p, 2160p, 1080p
    Video 2: 2160p, 1080p
    Video 3: 4320p, 2160p, 1080p

The common qualities are:

    2160p
    1080p

The application therefore allows a common quality to be selected
for all three videos.

The selected quality is also stored for each affected video, so the
quality shown in the confirmation dialog is the same quality that
will actually be downloaded.


4. DOWNLOAD SIZE
----------------

The application displays an estimated download size for the selected
quality.

For multiple selected videos, the displayed estimate is the combined
estimated size for all selected videos.


5. STARTING A DOWNLOAD
----------------------

1. Add videos to the Download Queue.
2. Check the selected quality for the queued video(s).
3. Click "Start Download".
4. Confirm the download when the confirmation dialog appears.

During downloading, the application displays:

    - Current video
    - Download percentage
    - Download speed
    - ETA
    - Queue progress
    - Estimated size

Only completed files are placed in the selected download folder.


6. EXISTING FILES
-----------------

If the same video already exists in the selected download folder:

Same video + same quality:
    The application skips the download.

Same video + different quality:
    The application asks whether the existing file should be replaced.

When replacement is approved, the old file is replaced only after the
new download has completed successfully.

This protects the existing completed file if the new download fails.


7. DOWNLOAD ARCHIVE
-------------------

The application maintains a download archive so previously downloaded
videos can be recognized.

If the archive says that a video was downloaded previously but the
completed file is not present in the currently selected output folder,
the application allows the video to be downloaded again.

An approved quality replacement also allows the video to be downloaded
again even when it is present in the archive.


8. YOUTUBE BROWSER COOKIES AND AUTHENTICATION
----------------------------------------------

YT Downloader can use browser cookies for YouTube authentication.

Supported browsers:

    - Brave
    - Google Chrome
    - Mozilla Firefox
    - Apple Safari
    - None (no browser cookies)

Browser cookies can be useful when YouTube requests authentication,
browser verification, or additional access checks.

For authentication-required downloads:

1. Sign in to YouTube in the browser whose cookies are being used.
2. Make sure the YouTube account can normally access the video.
3. Try adding/downloading the video again.

IMPORTANT:
The current application build uses Brave as the default browser-cookie
source unless the engine configuration is changed.


9. YOUTUBE BOT / BROWSER VERIFICATION
-------------------------------------
CHROME AUTHENTICATION
- Chrome authentication is OPTIONAL.
- It is only needed when YouTube triggers the
  "YouTube Sign-In Required" / bot verification flow.
- The prebuilt Native Messaging host is included in:
  ChromeAuth\host\dist\YTDownloaderChromeHost.exe (refer to README.txt)

ONE-TIME SETUP
- Run Setup\Install-Chrome-Authentication.bat only when instructed by
  YT Downloader.
- The setup registers the packaged Native Messaging host and installs
  the supplied Chrome extension.
- Chrome Developer Mode and "Load unpacked" are required once.

AFTER SETUP
- Sign in to YouTube in Google Chrome when requested.
- Leave Chrome open.
- YT Downloader detects the updated session automatically.
- No Retry or Connect button is required.

10. HTTP 403 DURING DOWNLOAD
----------------------------

A HTTP 403 error can sometimes occur after the video has already passed
the queue check, while the actual media file is being downloaded.

YT Downloader handles this separately.

When HTTP 403 is detected during the actual download:

    1. Wait 3 seconds.
    2. Remove the failed temporary download data.
    3. Perform a fresh YouTube/media extraction.
    4. Attempt one fresh download retry.

If the retry succeeds:
    The download continues normally.

If the retry also returns HTTP 403:
    The video is marked as FAILED.
    Temporary download data is cleaned up.
    The video is removed from the current download queue.


11. CANCEL DOWNLOAD
-------------------

The Cancel button is available during the actual downloading phase.

When Cancel is pressed, the application asks for confirmation.

If cancellation is confirmed:

    - The active download is stopped.
    - Temporary download data created for the current download is removed.
    - The queue is stopped according to the selected cancellation action.

The application does not intentionally delete completed files.


12. DOWNLOAD FOLDER
-------------------

The default folder is:

    ~/Downloads/YTDownloads

Use "Change Folder" to select another destination for the current
application session.

Completed video files are stored in the selected folder.

Temporary download files are handled separately from the final output
folder.


13. HIGH-RESOLUTION 4K / 8K FILES
---------------------------------

YouTube may provide high-resolution files using modern codecs such as
AV1.

Older computers may not have hardware decoding support for these
codecs. As a result, an 8K or 4K file may download correctly but still
play poorly or stop during playback on older computers.

This is a playback limitation and does not necessarily indicate that
the downloaded file is damaged.

A modern Mac with current hardware video-decoding support is better
suited for playback and editing of 4K and 8K files.


14. SECURITY
------------

The application validates YouTube URLs before sending them to the
download engine.

Only supported YouTube domains and valid YouTube video IDs are accepted.

The application does not pass the original unvalidated URL directly
to yt-dlp.


15. FINAL DOWNLOAD SUMMARY
--------------------------

After the download session finishes, the application shows a summary
containing:

    Downloaded
    Skipped
    Failed
    Cancelled

Failed downloads are reported as failures and their temporary download
data is removed.


16. TROUBLESHOOTING
-------------------

Video cannot be added:
    Check that the URL is a valid YouTube video URL.

YouTube asks for browser authentication:
    Sign in to YouTube in the configured browser and try again.

Download gets HTTP 403:
    The application automatically performs one fresh retry.
    A second 403 is reported as FAILED.

4K/8K file does not play on an older Mac:
    Check the video's codec. Modern codecs such as AV1 may require
    hardware decoding that older Macs do not provide.

No higher quality is shown:
    The requested quality may not currently be available for that
    particular video, or YouTube may temporarily expose fewer formats.


17. SUPPORT INFORMATION
-----------------------

Application:
    YT Downloader

Version:
    2.0

The About button inside the application provides application
information.